package com.rc.pojo.dto.adoption;


import com.rc.common.model.ImageModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

@Data
public class AdoptionAddDTO {
    @NotBlank
    @ApiModelProperty("认养活动名称")
    private String title;

    @Min(value = 0)
    @ApiModelProperty("认养价格")
    private BigDecimal price;

    @ApiModelProperty("简介")
    private String description;

    @Size(max = 3)
    @ApiModelProperty("轮播图")
    public List<ImageModel> imgs;

    @NotNull
    @ApiModelProperty("果树品种id")
    private Long plantId;

    @ApiModelProperty("预计收益")
    private BigDecimal expectedRevenue;

    @ApiModelProperty("发货周期")
    private String deliveryCycle;

    @ApiModelProperty("发货方式")
    private String deliveryMethod;
}
